Deprecated old attachment methods and ported tests to new API