Add more tests for std::ws as pointed out by bug #19497