R: Splitted up E2e and unit testing