Added seeding for tests and related tables

Models for tests and related tables
Seeding for tests and related tables

Fixed issue with foreign keys