test for multiple commands in one buffer
fix for multiple commands in one buffer