Added Models for TestEntity and TestEntityRelated and store and fetch functions

Fetch function having trouble reaching related tables, but everything
else working well.