added bdd tests for magic
relates #49
working with magic factory
relates #49