unit tests for jigg auth