frontend test coverage: code cleaning