Added tests to shadowdb.