Refactored compatibility tests to bootstrap the db before defining classes.

- I had to make the setup methods a class method and call it within the
  test cases because for a reason I cannot pinpoint. The wrong tables
  were present so tests would fail because they would try to create
  records on tables that were missing.