fixed typo
added tests for cart dto factory methods
added dto tests