Added InTest sub method