tests for fixed remove function