test for options method passed & fix some bug