Added unit test for readPageIntoFrame, valgrind reports no leaks