controller state stubbing