small fix to test code