form element tests refactoring
add new form element exception for invalid repository return types