Added tests for compute-f-on-dimensions