Added unit tests, updated composer dependencies, and made small bug fix