added additional test and fixed priority bug