test that calls are made correctly