Exploring free-energy profiles through ion channels: comparison on a test case