Added unit tests for input validation of records.