added unit test for cylinders and started unit test for state functions