Description of your problem
This was pointed out in #4887 that the testing for Beta distribution used values that might lead to invalid combination of arguments in the following test:
https://github.com/pymc-devs/pymc3/blob/53e572caa3144f77951e233f6bcca72b63084bd8/pymc3/tests/test_distributions.py#L1164-L1169
The values for mu and sigma are picked randomly from their respective Domain. However in this particular case we only have certain value pairs which are valid. In the current v4 testing it simply returns NaN values for invalid cases. With #4887 we will require a new mechanism/value Domains to be placed over here.