Written tests for models