fix NullPointerException in test

@osa1  please review