separated test into e2e and unit