test model inheritence

Added test for model inheritence implemented in the new metaclass.

Split the fields tests into a separate file because it was getting huge.