Adding support for stm32f334nucleo and stm32f4discovery in emulator test scripts. Testing it on emulator. Remove redundant code.