refactoring solutions tests