fixes gulp overriding karma files setup
adding some test to verify the correct behaviour.