Added unit tests for new resource model