add a test for #17106
add lib to $LOAD_PATH on application inhertence. fixes #17106
Merge branch '17106'

* 17106:
  add lib to $LOAD_PATH on application inhertence. fixes #17106
  add a test for #17106