Added support for test compilation and implemented clean based on clean plugin.