Added tests. Fixed a bug where optional dates did not work as first params.
v0.1.2