Added a test to ensure that appends happened in correct order.