Update test to remove unnecessary code