Added tests for prioriteis.
Added comments to the test specs.