fix as() tests

My pull #701 conflicted with https://github.com/timrwood/moment/commit/04a19aaeb8b31883e25e559821734a77465c574c and broke the tests. Here's the fix.