- Refactored code.
- Added tests for non-string param.