[Core] Improved asset generators
 * Improved security
 * Added some unit tests