improve rake spec testing in docker

Change-Id: Id8e802fae04ee01fd678ffc7ee2d162b49cea1b2