Add tests for as_of error cases
Fix as_of manager method on class
Fix file and image field tests for Django 1.3