fixed a bug in case that required file does not return a function
updated readme
added tests for dependencies