Added null pointer protection when tests cannot parse son files.