Fix parameter handling for exported methods.
Reorganize test files.