Karma unit testing works

Signed-off-by: Bogdan Bivolaru <osbiv@yahoo.com>