write a test to check for named parameter functionality