updated test case for comparing date after writing/reading to crate
document