Test for not forked

Added a test to confirm that pid file will be removed in the case that a
process is not a fork and calls remove_pid_file