feat(adapter-test): accept a function for platform option
#196
+5
−2
platform option
#196