added test file to test function "advance"