RP API bits
Logout
Fix RP tests