Update test code