introduced testing mode including a singlephrase generator for e2e tests
fixed unit test