Added tests to grant