Adding ApplicationModel to the test helper.

The Active Record tests should now include inside of it an
ApplicationModel.
Using ApplicationModel in Active Record tests.

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