fixed bug that stemmed from the phpunit implementation