Added support (untested) for priority. Tests are sorted by priority and waiton before being launched