add braket to seperate test flow control and functional test code