Implement params testsuite. Many fixes.