The phrase "Before Samantha can take her driving test" contains one subordinate clause only.
A subordinate clause cannot stand alone as a complete sentence and typically begins with a subordinating conjunction, which in this case is "Before." The clause contains a subject ("Samantha") and a verb phrase ("can take her driving test"), but it is dependent on additional information to form a complete thought.