Add integration test for getAllForUser