fixed bugs in test model definition