added selenium tests for m2m widget. Fixes #202