added tests for parameters and formatters, fixed some bugs.