assert function for localStorage page