fixed quote and list function, added def tests