Updated test.
Added test function.
Updated test files.