add mock for xhr
add unique parameter for mark method