tests and deleting function which is not needed