[bell] rework the api flip_rotate_translate function
[bell] add self_tests