Added unittests for Trac