B-field tests built in and removes random matrices