Added test for functional cube