Karma tests

@mereskin