ticket:14, fixed tests and imports
ticket:14, fixed widget assigning
ticket:14 unittests optimisation