added unit tests for append