update tests for precomputation flag
add support for precomputation flag