Add test for optinal params. Closes #13