Added a lot more tests
Added automated testing in grunt