Adds tests for cart

@majjoha