Fixed total cpu count
First unit test