Added test for ActivityRecognitionApi