data compatibility fix
Added a test case for backward compatible data reading