cleanup - moved sensor context to interface
added test