Add test generation with simple richtext preview