Add tests for resource name white and blacklist.