Tests

Added tests for models. 
Use metadata for inclusion of shared context. :)