Tests, bugs and files encoding