Resources tests clean up

- Cleaned up resources tests code base.