Reformatted test method moved getActivity to assertion part