tests: wrote some very basic karma unit tests