fixed bugs in resources' schemas
split resource schemas to individual files
fixed tests