refactors activity.js integration tests