Fixed bug where artifacts with test scope would still be added to the classpath

Fixed bug where artifacts with test scope would still be added to the classpath.
This would cause a null pointer if there was a transitive dependence on an artifact with test scope