Add unit tests for functions call and check and fold for module player