Refactor doMock().
Fix logic error in mock flags.
Update dist.
Minor refactor.
Remove unused test-file.
Refactor boolean tests.
Change reporter style in Karma.
Fix warning in Karma.