Test for existing self-linking functionality (following the HAL model)

This PR adds unit tests for the self-linking functionality. To do so it uses a new set of stubbed data formatted according to the [JSON HAL specification](http://stateless.co/hal_specification.html).