add all function and wait for test