Add select widget for n:1 relations
Refactor tests