cleanup syntax
adding karma unit testing