Added a test for by name functions