Updated CG bindings tests to use Minitest.  Also fixed some bugs.