fixed pattern with resource file type
added converting number into int and added some tests