bugfixes to ensdf parser and test case