Add tests for record listing