Add tests and necessary resoruce
Fix bugs in 'apply' and 'ref'
Remove unused functions in Func.
Remove the first parameter from 'ref'
Add a test resource for 'ReadTest'.