fiy a serialization issue; always add "arguments" key to params array; add tests