fix webpage example in readme and introduce a test to validate it avoid regression