unit test and piece interaction made