added ternary operator to entry persistence test to avoid nil errors