test for license