added karma tests
cleanup