Add tests for valueType option

I've created a test for the new `element` option, which is currently failing.  Can you take a look and see what the issue might be?

Thanks!