fixing the failing state_machine specs part 1