Pulled some repeated functions out of RCTest