writing page store tests and tying it to the db