Test merge code

Add tests for merge code

Signed-off-by: Martin O. Pollard <mp15@sanger.ac.uk>