Add a test script

Signed-off-by: Sam Phippen <samphippen@googlemail.com>