Tests & Optimization