added unit testing
added karma