cleans up and adds tests to selection pages
Merge pull request #27 from penzance/feature/selection_pages_improvements

cleans up and adds tests to selection pages