InverseArrayTest - add check for NullPointerException