Tests (with mocks) of farming; fix farm counts

Addresses issue #243