Added e2e and unit tests.