Fix tests and add test for .pure