Changing test to use append() method, but causes failure