all tests pass now
refactored the coverter and tests classes