Quality Assurance is the activity performed to prevent the occurance of errors in the total project. Hence, QA plan specifies the ways to follow to prevent the occurance of errors in product development.
A test plan specifies the ways to follow to prove the confirmance of an application to standards.