muhhshoaib/wl 124 add front end tests for autoenrollment

Please add a comment in the code to explain where -5 comes from.