Refactored Tests for reuse