Add unit tests and instructions.