unfinished work on karma test porting