Refactored extensions and added "unittest"
Fixed issue with "Facebook" sample not being correctly parsed