Unit testing related functions. Modeling exercise: game of chess