Adds tests for intermediates