Turns out the test was wrong, not the code!  Corrected the priority testing fixing #1
Corrected variable names and checked array arguments to resolve #1
Ignoring the test coverage directory
Changed the tests command to a single line for travis-ci.