added a test script

Signed-off-by: Graham Chiu <compkarori@gmail.com>