Add basic tests and function declarations.