jsonalchemy: failing test fix

* Fixes failing test cases which was due to side effects introduced
  in 0a7ab631883fe514a28116fbc7fb8b47bd5c1bb4.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>