test resource exist()