Wrong table inserted into in test