add a resource for test
fix a compiler error