test for the alternative way of passing in options