Add test for CreateText