Added remaining tests for isBefore.