Fixes for tests

Fixed a couple of tests that used is_a? but that did not test for object types
Changed == nill to be_nil for more verbose testing
Changed array.count.should == 0 for array.should be_empty for more verbose testing
Fixed wrong id test