fixes and refactoring to Tmx.Server/Tmx.Client and Tmx.Server unit tests