added precalculation tests