add test for complex decode
remove unused decode helper methods