Added grunt tasks for running the karma tests.Fixed issue with declaring the assertion variables.