fixed some errors in model test