Addition of unit tests for utility methods

Addition of unit tests for the utility methods used for reading PDA
format. Corrections and aditional checking on the tested methods to
cover all test cases.