add lib-with-resources test case