refactored put test