Diagnostic test for pregnancy