completed tests for string reduce