Add unit testing

Add the beginnings of a unit test suite using Karma