add test for direct calculation