more basic tests and change package model init to use null instead of undefined