remove cache and add integration test