Added optional params test. Fixes #12.