Ping/pong resource test & refactoring