SWTEST CODE