Fix NPE in the test code

Pass an empty list instead of a null.