renamed methods
added e2e test