Add more tests and enhacements for sdb-json