added functions to test