Feature/karma tests