added karma test runner
fixes dataStore global
added unit tests