BagTest now works and already found a bug!