Put codes for backend under "lib/backend" and codes for frontend under "lib/frontend"
Fix path to load module
Use ".test" instead of "-test" as the suffix of test files
Fix syntax error around defining constants