Fixed a bug with not releasing a page in test