Add remaining tests based on erlang_py and erlang_rb.  Fix bugs.