finish mems function test