Reorganised integration tests
Added integration tests for imports endpoint
Test for non-existent IDs in addition to invalid ones
Typo & improved comments