Tests added in https://github.com/sillsdev/machine/pull/327 and in the PR related to the issue mentioned there.