tests fix and renaming of new function