Add tests for count with autoFields