A fix while improved homog-test.js' mutation score

Mutation analysis was performed on homog-test.js with Mutator (http://ortask.com/mutator/). These are some fixes that were made for small issues in the source file.