Add dynamic methods to tests explicitly to fix inconsistently failing tests