test mems function still can't work because of buffer value is wrong