Added the correct way to detect for by-name parameter, and all tests are passing now.