Makes tests pass and adds some tests for application_helper.
Merge pull request #17 from alienfungi/test_branch

Fix tests.