Links corrected + Tests

added enclosure
added self
added few tests

Signed-off-by: Emmanuel Mathot <emmanuel.mahot@gmail.com>