OZP-103: Write RPC API unit tests.

1. Added RPC container API unit tests.
2. Cleaned up other container tests by consolidating duplicated code and fixing their html display.