Finsliparn: LLM Code Refinement with Test Validation