make addmodel raised error more specific
add test for checking if we raise an error when addmodel fails
Merged