rhbz1101803 - fix TMX clear function

plus some functional test fixes