added validation of state in the acceptance test