Add unittest for parsing function declaration