unit testing for diamonds