tests: enhanced inMemory tests and cleaned up tests for includeEmptyFields