All the underscore things are not public, also its making the tests very brittle. Just assert that the correct date comes out (do format() and put a full ISO date you want to match against).