Add some tests to auth grant