fixing options.type issue and adding more tests around it
0.1.10