added test for open:true config
missing `open` type check
Merge pull request #61 from dasilvacontin/fix/60

fixes #60, crashes with open:true