Even if you tested positive, SARMS are legal for research purposes in most countries. I am not sure about Sweden specifically so you would need to look into it.
If it is legal and you did test positive, you wouldn't be in any trouble.
I did a simple google search for you and as far as I can tell, they are legal in Sweden. However, I would still call a defence lawyer to double check.