Added basic type tests
Better close path check
Merge pull request #3 from peteruithoven/Better-close-path-check

Better close path check