Added test for as_of method.