Fixed missing newtal var and added correct test for having items and some tweaks to tests