finished writing tests for merge method