call correct function in test method