updated manual test code