Put tests to test folder, remove unrequired files, fix permissions