tests
remove testing prints
attachment api fixes