Integration and coverage tests. (Fixes issue #2)