Clean up tests for use with karma