Added Rake tasks and fixed profile in sensor test