Added first set of DateUtil tests

I'm still not too comfortable writing JavaScript tests, so all feedback is very much appreciated!