Added tests for piece class.