Refactor functional_test using DRY principle

 - correct some mistakes in entering second text in the placeholder