cleanup for page truncation, more tests