added type arg. for state id
enabled testng tests