performance wise improvements
added test for conversion of prolog empty lists