added modes test
updated version