js api test case for overriding init options