tests updated to run with karma successfully