rdf method is updated and test is added