fixed warnings of tests