Testing Sequence Dependent Defects: New Methods of Applying Two-pattern Tests and Testing Sequence Dependent Defects