removed some warnings and addes function to test commands