improving the tests for JRef and SerializedTerm