Better devmode test

Added precommit-hook