add more tests
createModel must now be a fn