Added tests and documented app_name.