- fixed an unchecked warning
- added more flexible date comparison so that the test won't fail that easy