test refactored after changing names of function