complete test code