add byref test to basic tests