add new function rev in functions module; add unit and system test for it
modify test environment