Fixed the errors occurring in button tests by introducing a test page
and putting the button inside that.