Fixed typo and added tests

Change-Id: I463d078b04e55605ed273011cd79bdc1bd88879c
Merge pull request #4 from edx/activity_type_fix

Fixed typo and added tests