Tests for invite form

Add tests for invite form (initially tried to reproduce autocomplete querying problems).
Also updated .gitignores.