Improved testBeforeAndAfterWithFormat() tests

Tweaked to include tests for relative dates like `yesterday`, `tomorrow`, etc.