Unit testing models and migrations

Added 11 tests for associations, so these should hopefully work out of the box