[bash] test struct method on osx that unsupported
[bash] test function exists or not