added testing for enter and exit validation