employ before_each after_each to avoid repitition
add method call tests
make json parsing more robust

also send json-rpc conformant error messages back to the sender.
add tests for "Invalid Request" and "Parse error".