Return empty string when no expression namespace.

Added tests to cover possibility. To deal with Windows remove carriage return.