Add testcase for a basic model being persisted