parse definition file tests added and bugs fixed