[test] add sensor test code