added tests for the page loading spinner