Divided tests into unit and integration.