fixed errors when asset-root is nil
updated tests to new function locations
fixed typo