add tests for wsme.types
Created originally on Bitbucket by dhellmann (Doug Hellmann)
Was already merged in Bitbucket before import, marked as merged by the import user
This brings the test coverage of wsme.types up to 99% and fixes a bug I found in the process.