added tests to compare density and composition