wip: refactoring karma tests

Signed-off-by: Sergey Gaichuk <sergey.gaychuk@gmail.com>