add test to verify that  takes both versions for function handler fns