refactored getAndSetTests
added tests to BaseEngineTest
added tests to BaseProtocolTest
added tests to BaseTCPEngineTest