cleaned up errors in tests