Fix test for mem-db to honor stricter inputs