Failing test showing problem with order of nested models