old test function file