Add filtering capability to a jpm tests.
Fix path reading.