Fix input sorting algorithm test