Added tests for functional mask