Add unit tests for function signature mechanism