I have added additional assertions to test that append and prepend have the expected behaviour