fixed test from nullrefrence issue