modified function to set the aria levels
modified and added new tests