fix #10 add ResourceResolver and test code