added the spec for leave application
remove the unwanted code