Added resource hash unit test