Improve tests for stack and line components