fixed undef test
Added assing tests