modify calendar plugin and add a test template