added tests

mock test
web test (need to fix)