initialize test and function