added marshalling tests for datetime

- may need to add for other types too
- Added comment describing behaviour of datetime marshalling