Updating the test logic