test function examples