src/app/main tests code review