added tests
added text method