Set up for karma test runner.
Added AppModel tests.