Adds tests to page decorator, and changes logging to not log errors from page decorator in test mode