added selfcheck and create_model test