add tests for library loading from resource path