added tests
added textui to tests