(CFACT-44) Add unit tests for Ruby API.

Adding unit tests to test various parts of the Ruby API.