Unit and E2E tests with samples