Add a test for buffer as parameter