Pages module test
reformat test code
dont logout
fix tests