Added some tests for function declarations