fixed bug in lattice.py, added unit test to check behavior
fixed bug in lattice.py, added unit test to check behavior

joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue