Replaces tabs with spaces and starts to add test code for the plugin