tests and code smells