fix tests and delete redundant test