fixed failing test due to date() call