TST: Added tests for remove of legends on figure and axes objects