Added test functions and 'define'.