added unit tests for the cube