add sanity checks to pass all tests