Proper binding of test directive