add priorities and tests