fixed some imports/exports in /test. all tests passing with karma.