Adding test and Karma to run it