Fixed test mocking getItem empty return value incorrectly with undefined instead of null