Added replace and scores tests

Signed-off-by: timdrew <tim@timdrew.com.au>