Enhance test to make sure getCurrentRevisionId does not return null
call getCurrentRevision() instead of currentRevision, fixes bug detected in test in last commit.