moved model creation to outer context
removed id dependancy in court and updated spec