Selection page tests with fake dom

Selection page tests added that use a fake DOM to test the page. A fake user has also been added which will wait for things to appear in the DOM before taking action.