First of all, it's good that you learn a little about how malware works, after that you can do tests on your laptop, as long as you use Shadow Defender and a good VPN, and always with responsibility and care.
But always remembering that for beginners, it will always be advisable to use a virtual machine with a VPN.