First pass at tests for functions.