Updated StateTest class