add a test method and update podspec file