Use not ast but contents string for testing