Added some tests for createmodel.py