Added tests for function namespaces