repaired poly_db testcases