Added tests for enterQueue and exitQueue methods