added test to cover if second array arg has null value