Added test file and the library itself.