(CFACT-44) Fix confines to be case-insensitive.

Confines weren't converting the fact value to lower case before
searching the collection of confined values.
(CFACT-44) Add unit tests for Ruby API.

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