mocked api + test
mocked API + switch