If the test class does not retrieve the updated value from the database, it will not see any changes made by the page logic. This can cause assertions that check for those changes to fail. The test should query for the most recent value from the database after the operation that is supposed to update the value.References: Apex Developer Guide - Testing Best Practices