Tests that a custom survival object has the required attributes for use in the prevalence function.
prevalence