Invite tests

Not sure if this should be merged or not (looks like it can't be anyway). Still doing work, but at least this will give a few good examples of backend tests.