Fix testStates plugin registry testcase