Refactoring TestTube functionality via Map (TestTube class). Updated code style.