fixied helpers.rb

supported 'if' params with namespace.
added tests.
The double quote was replaced by the single quote.