#4: closeElements() and rotate_buff made private.
#5: Added tests of the _closeElements() and _rotate_buff().