Added a test to make sure there are no double validation error

messages in custom fields and fixed 2 factories

https://www.openproject.org/issues/709 was fixed by some other changes in between, so
https://github.com/opf/openproject/pull/168 should not be necessary anymore. I only added
linki's test to prevent regression.