Unit test beginnings

Added skeletal unit tests
Needs fleshing out and jQuery adding to the karma runner