Added unit tests for text module