Implemented WP_Error object for add_model()
updated unit test