Fix visibility of some methods.
Add tests for param parsing.