finishes tests and fixes some application module bugs