Unit testing for Priority model