Refactor collection nodelist tests

Need this for karma integration