Added test case for using both a handler and options