resoucre model and tests