writing tests fixed, append test added (like in master)