Added application_state tests