Updated domain repository tests

Signed-off-by: Will Read <will@pivotallabs.com>
Updated endpoint repository tests

Signed-off-by: Will Read <will@pivotallabs.com>