Remove unnecessity code of test