Adding ApplicationModel to the test helper.
Using ApplicationModel in Active Record tests.

This replaces the current use of ActiveRecord::Base in most tests.
Changing the models.