Add timeout for resource impl tests
fix references to previous count variables