Improved error msg. Fixed potential getResource bug.
Added test class for Gerards NIPT software.