tests and remove debug