Handle more JUnit cases and add unit test.
Add support for computing likely revisions.