Added unit test for RBD image flatten method