AssertionError with logcdf method for a Beta

This is a different error. You’re setting a's test value to an RV. That is not supported because test values must always be numbers or arrays.