Fix check for existing partition type
Fix failing tests
Merge pull request #12 from ssevertson/master

Fix issue #11