removal of useless test