Adding some tests for ajax actions. Needed to reorganize the test a little.