moved tests from trietest.py to py.test tests