change test files

change test files to use "nose"" unittest framework
implement to P17