tests now pass using karma