[test] Adding missing tests for #5
[minor] Also pass the given arguments in to the function.