add pages to bottom, top and custom loc
tests for adding pages