adding simple test of activities and refactor makeRepl