refactoring of BrickEditFormulaTest

see commit message :)

successful run of package uitest.content.interaction: http://jenkins.catrob.at/job/Catroid-single-UI-package-test/183/