Fix views test failures

With a recent change the views tests started to fail on my machine
due to a buffer being not big enough because it didn't take the
terminating NULL character into account.

Change-Id: I60c6b1cee613954629cd315deab1d5cedb05a749