unit tests for Function Model