add tests and make editing ordergroups with user work