add ajax tests
added e2e tests with http mock