Add more unit test. fix issue on revisions arguments