Fixed incorrect object reference in test