added test case for options