Move tests under libra package subdir.

Based on recommended change by Monty Taylor. The package tests do
belong with the package they are testing rather than outside of it.
Moving it requires making it pep8 and pyflakes happy.

Change-Id: If45e2e5240c2e07ca0bb945a103dd3f409546ea4