updated test code to use latest Testify language