Correctly set model in addDataToModel

Signed-off-by: bhill2 <bjsrhill@gmail.com>
Add new test addsPagesToModelNull

Signed-off-by: bhill2 <bjsrhill@gmail.com>