Refactored test dynamic methods