update unitTest for mirror option