added test to see if nil was treated correctly as an elements and more compliated tests