encoder tests done