refactored test to not require nodatime