[#79903576] Fix bugs in rspec setup for CPT