test() function moved to example