added phpunit test for cart class