Created unittests to calculate values
More to implement and test, so no final commit.