Added some model tests.
Fixed some properties behaviors.