Add test for trailing spaces in specs

I tired to do it manually each time in review. Let Jenkins do it.
All existing specs in for Juno and Kilo fixed.

Change-Id: I9f06fc86bcdd24d9cf73d4ac2aefb6065ed4360e