remove unused function in test