Bugfix. use !isBefore instead of isAfter

moment.js is accurate to the second, instead of milliseconds. This causes
timing errors while testing.