adding test function