added test for element state