Fixed links and added unit tests.