assigns test to var