test now works also some bugfixes for the parsing methods