DRY mocks, graceful handling of parse issues

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>
test for graceful parse failure handling

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>
test for graceful parse failure handling

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>
DRY

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>
503 test

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>