Without knowing what both substance A and B were, that would be very difficult to answer. If substance A were soluable in substance B the I doubt very seriously that substance A would show up. It would also have to do with the type of test. Many different analytical methods can achieve...