Probably a mix of both, they probably ran HPLC or some kind of (liquid) chromotaography on an extract from a shrimp and just looked at the retention times. After that they probably saw something pretty close to cocaine and then went on and did further testing to find concentration and all that.