Some tests for TPDU writer