Add unit test to vacancy model for check validation