refactoring fix console tests