Add parser support for function declarations.

Also added labels to tests.