added testmethod in needsmodel