Add pbc/2 function to the rt module to allow custom options to be specified
Increase the test code coverage and make the coverage checking more
robust to failures.