fixed a typo in test output
better logic for string mode to return a list