initial test encoding